package com.smart_environmental_protection.service.ServiceImp;

import com.smart_environmental_protection.dao.OrderDao;
import com.smart_environmental_protection.pojo.Order;
import com.smart_environmental_protection.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderServiceImp implements OrderService {
    @Resource
    private OrderDao orderDao;


    @Override
    public List<Order> OrderList(Integer state,Integer userId) {
        return orderDao.OrderList(state,userId);
    }

    @Override
    public Order SelOrder(Integer id) {
        return orderDao.SelOrder(id);
    }

    @Override
    public int UpdOrder(Order order) {
        return orderDao.UpdOrder(order);
    }

    @Override
    public int InsertOrder(Order order) {
        return orderDao.InsertOrder(order);
    }

    @Override
    public int setIcon(Order order) {
        return orderDao.setIcon(order);
    }
}
